import { request } from '@/utils/request.js';

// 微信手机号登录
export function wxLogin(data) {
  return request({
    url: '/app/login/code',
    method: 'post',
    data,
	serviceBase: '/smt-auth'
  });
}

// 注册并登录
export function register(data) {
  return request({
    url: '/app/registerAndLogin',
    method: 'post',
    data,
	serviceBase: '/smt-auth'
  });
}

// 手机验证码登录
export function phoneLogin(data) {
  return request({
    url: '/app/login/code',
    method: 'post',
    data,
	serviceBase: '/smt-auth'
  });
}

// 发送短信
export function sendSms(data) {
  return request({
    url: '/app/send/code',
    method: 'post',
    data,
	serviceBase: '/smt-auth'
  });
}